let api = `${baseApi}coefficientTemplate`;

/**
 * @method addCoefficient 添加费用系数模板信息
 * @param 
 * @return axios
 */
export const addCoefficient = function (params) {
    return axios.post(`${api}/addCoefficient`, params);
}

/**
 * @method closeCoefficient 根据费用系数信息实体,关闭费用系数
 * @param 
 * @return axios
 */
export const closeCoefficient = function (params) {
    return axios.get(`${api}/closeCoefficient/` + params);
}

/**
 * @method conditionalQueryCoefficient 条件查询费用系数模板信息(带分页)
 * @param 
 * @return axios
 */
export const conditionalQueryCoefficient = function (params) {
    return axios.post(`${api}/conditionalQueryCoefficient`,params);
}

/**
 * @method getAllByCoefficient 查询所有的费用系数模板消息
 * @param 
 * @return axios
 */
export const getAllByCoefficient = function () {
    return axios.get(`${api}/getAllByCoefficient`);
}

/**
 * @method getCostTemplateById 根据费用系数信息id查询费用系数信息
 * @param 
 * @return axios
 */
export const getCostTemplateById = function (params,status) {
    return axios.get(`${api}/getCostTemplateById/` + params + '/' + status);
}

/**
 * @method modifyTheAssociatedRoom 费用系数模板的关联房间
 * @param 
 * @return axios
 */
export const modifyTheAssociatedRoom = function (params) {
    return axios.get(`${api}/modifyTheAssociatedRoom/` + params);
}


/**
 * @method updateCoefficientTemplate 修改费用信息
 * @param 
 * @return axios
 */
export const updateCoefficientTemplate = function (params) {
    return axios.put(`${api}/updateCoefficientTemplate`, params);
}

/**
 * @method getAllCostTemplate 查询所有的费用系数信息(带分页)
 * @param 
 * @return axios
 */
export const getAllCostTemplate = function (params) {
    return axios.post(`${api}/getAllCostTemplate`, params);
}
